<%--
  Created by IntelliJ IDEA.
  User: 许正雄
  Date: 2021/12/22
  Time: 16:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link type="text/css" rel="stylesheet" href="/static/css/style.css" />
    <script type="text/javascript" src="/static/scripts/function.js"></script>
    <script type="text/javascript" src="/static/jquery3.6.0.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#exit").click(function () {
                let msg="是否确定退出登录？？";
                if(confirm(msg)){
                    return true;
                }else {
                    return false;
                }
            })
        })
    </script>
</head>
<body>
<div id="header" class="wrap">
    <div id="logo"><img src="http://localhost/images/qdn_log.jpg" style="width: 120px;height: 60px" /></div>
    <div class="help">
        <span>
             <a href="selectByCustomerId?id=${customerSession.id}"> ${customerSession.customerName}<c:if test="${customerSession.customerSex==0}">先生</c:if><c:if test="${customerSession.customerSex==1}">女士</c:if></a>
        </span>
        <a href="index.jsp" id="exit">退出登录</a>
    </div>
<%@include file="head1.jsp"%>
<div id="main" class="wrap">
    <div class="left-side">
        <div class="spacer"></div>
        <div class="news-list">
            <h4>新闻动态</h4>
            <ul>
                <marquee direction="up" behavior="scroll" onMouseOut="this.start()" onMouseOver="this.stop()" scrollamount="5">
                <c:forEach items="${newsList}" var="news">
                    <li>
                        标题:<a href="/manage/selectNewsById?id=${news.id}" target="_blank">${news.title}</a><br/><a href="/manage/selectNewsById?id=${news.id}">${news.news}_${news.remark}</a>
                    </li>
                </c:forEach>
                </marquee>
            </ul>
        </div>
    </div>
    <div id="news" class="right-main">
        <h1>标题：${news.title}</h1>
        <div class="content">
           描述： ${news.remark}
        </div>
    </div>
    <div class="clear"></div>
</div>
<div id="footer">
</div>
</body>
</html>
